package com.jdbc.entity;

/**
 * @author wzm
 * @create 2023-11-01 11:12
 * project_name:web2310
 */
//对应这数据库book
public class Book {
    private Integer id;
    private  String name;
    private float price;

    public Book() {
    }

    public Book(Integer id, String name, float price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                '}';
    }
}
